Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[generic_config_updater] add GCU ignore regex #5509

Merged
merged 4 commits into from
Apr 14, 2022

Conversation

wen587
Copy link
Contributor

@wen587 wen587 commented Apr 13, 2022

Description of PR

Summary: Add regex to unblock PR check
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

Add gcu ignore regex to unblock PR check

How did you do it?

Add regex pattern

How did you verify/test it?

Run unit test locally

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@wen587 wen587 requested a review from wangxin April 13, 2022 10:52
@@ -28,6 +28,9 @@ def ignore_expected_loganalyzer_exceptions(duthost, loganalyzer):
".*ERR swss[0-9]*#orchagent: :- getPortOperSpeed.*", # test_portchannel_interface replace mtu
".*ERR.*Failed to apply Json change.*", # validator need updater submodule
".*ERR GenericConfigUpdater: Change Applier: service invoked.*", # validator need updater submodule
".*getResAvailableCounters.*", # test_monitor_config
".*objectTypeGetAvailability.*", # test_monitor_config
".*ERR dhcp_relay.*", # test_dhcp_relay
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pattern is too generic. Can you prepend the module generated these messages?

BTW, can you also change the scope of this fixture to module level?

Copy link
Contributor Author

@wen587 wen587 Apr 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've update the first two pattern. The dhcp_relay ERR seems random failure. The msg looks like below. So I just wrap them into one.

['Apr 11 17:53:27.057936 vlab-01 ERR dhcp_relay#dhcrelay[38]: setsockopt: SO_BINDTODEVICE: No such device\n', 
'Apr 11 17:53:27.057936 vlab-01 ERR dhcp_relay#dhcrelay[38]: \n', 
'Apr 11 17:53:27.057948 vlab-01 ERR dhcp_relay#dhcrelay[38]: If you think you have received this message due to a bug rather\n', 
'Apr 11 17:53:27.057948 vlab-01 ERR dhcp_relay#dhcrelay[38]: than a configuration issue please read the section on submitting\n', 
'Apr 11 17:53:27.057948 vlab-01 ERR dhcp_relay#dhcrelay[38]: bugs on either our web page at www.isc.org or in the README file\n', 
'Apr 11 17:53:27.057962 vlab-01 ERR dhcp_relay#dhcrelay[38]: before submitting a bug.  These pages explain the proper\n', 
'Apr 11 17:53:27.057962 vlab-01 ERR dhcp_relay#dhcrelay[38]: process and the information we find helpful for debugging.\n', 
'Apr 11 17:53:27.057973 vlab-01 ERR dhcp_relay#dhcrelay[38]: \n', 
'Apr 11 17:53:27.057973 vlab-01 ERR dhcp_relay#dhcrelay[38]: exiting.\n'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like loganalyzer fixture is function level.

@wen587 wen587 marked this pull request as ready for review April 14, 2022 02:37
@wen587 wen587 requested a review from a team as a code owner April 14, 2022 02:37
@wen587 wen587 requested a review from wangxin April 14, 2022 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants